//
//  DemoMainMenu.m
//  SpaceViking
//
//  Created by gnt on 2/17/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "DemoMainMenu.h"

@implementation DemoMainMenu
@synthesize button1, button2;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

-(void)viewDidLoad{
    [super viewDidLoad];
//    UIImageView *ivNavi=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 480, 320)];
//    [ivNavi setImage:[UIImage imageNamed:@"button1.png"]];
//    [self.view addSubview:ivNavi];
    //mat thanh bao mang o tren 
    [[UIApplication sharedApplication] setStatusBarHidden:YES];
    
    button1=[UIButton buttonWithType:UIButtonTypeCustom];
    button1.frame=CGRectMake(90,120 , 300, 60);
    [button1 setBackgroundImage:[UIImage imageNamed:@"button1.png"] forState:      UIControlStateNormal];
    [self.view addSubview:button1];
//    [button1 addTarget:self action:@selector(presentModalView2) forControlEvents:UIControlEventTouchUpInside];
    
    button2=[UIButton buttonWithType:UIButtonTypeCustom];
    button2.frame=CGRectMake(170,260 , 70, 60);
    [button2 setBackgroundImage:[UIImage imageNamed:@"button2.png"] forState:      UIControlStateNormal];
    [self.view addSubview:button2];
//    [button2 addTarget:self action:@selector(presentModalView2) forControlEvents:UIControlEventTouchUpInside];
    
}

- (void)didReceiveMemoryWarning
{
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc that aren't in use.
}

#pragma mark - View lifecycle

/*
// Implement loadView to create a view hierarchy programmatically, without using a nib.
- (void)loadView
{
}
*/

/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
    [super viewDidLoad];
}
*/

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
